<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
    xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
    xmlns:p="http://primefaces.org/ui">
    
<ui:insert name="metadata"></ui:insert>

<h:head>
	<f:facet name="first">	
    	<meta http-equiv="X-UA-Compatible" content="edge" />
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  	</f:facet>

	<title>#{config.getPropertyIncludePrefix('platform')}</title>
	<h:outputStylesheet name="css/public/sub.css" />
	<h:outputStylesheet name="css/stylesheet.css" />
	<h:outputStylesheet name="css/public/layout.css" />

	<h:outputStylesheet name="css/public/hover-mask.css" />
	<h:outputStylesheet name="css/public/pull-down.css" />
	<h:outputStylesheet name="css/public/first-pagemain.css" />	
	<h:outputScript name="js/public/left-menu.js"></h:outputScript>
	<h:outputScript name="js/public/rightIcon.js"></h:outputScript>
	<h:outputScript name="js/public/hover-mask.js"></h:outputScript>
	<h:outputScript name="js/public/pull-down.js"></h:outputScript>
	<h:outputScript name="showBo/js/showBo.js"> </h:outputScript>
	<h:outputStylesheet name="/jquery-viewer/css/viewer.css"></h:outputStylesheet>
   	<h:outputScript name="/jquery-viewer/js/viewer.js"></h:outputScript>
	<h:outputStylesheet name="showBo/css/showBo.css"></h:outputStylesheet>
	<h:outputStylesheet name="css/public/override_primefaces.css"></h:outputStylesheet>
	<h:outputStylesheet name="css/public/page.css" />
	<h:outputScript name="js/public/paging.js"></h:outputScript>
	<link rel="shortcut icon" href="#{resource['images/favicon.ico']}" type="image/x-icon" />
	<style type="text/css">
	
		td {
			min-width: 200px\9\0;
		}
		
	</style>
	
	<script type="text/javascript">
		$(function () {
			PrimeFaces.locales['zh_CN'] = { closeText: '关闭', prevText: '上个月', nextText: '下个月', currentText: '今天', monthNames: ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'], monthNamesShort: ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'], dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], dayNamesShort: ['日','一','二','三','四','五','六'], dayNamesMin: ['日','一','二','三','四','五','六'], weekHeader: '周', firstDay: 1, isRTL: false, showMonthAfterYear: true, yearSuffix: '', // 年 
					timeOnlyTitle: '仅时间', timeText: '时间', hourText: '时', minuteText: '分', secondText: '秒', ampm: false, month: '月', week: '周', day: '日', allDayText : '全天' };
		});		
   	</script>
   	
	<ui:insert name="head"></ui:insert>
	
	<script type="text/javascript">
		// <![CDATA[
			$(function () {
				//图片预览
				$("div[id^=imgsPreview]").each(function(){
					var id = $(this).attr("id");
					new Viewer(document.getElementById(id),{
					 	url: 'data-original'
					});
				});
				
				$('table').each(function () {
					var data = $(this).html();
					if ($.browser.msie && $.browser.version === '9.0') {						
						data = data.replace(/>\s+(?=<\/?(t|c)[hardfob])/gm,'>');						
						$(this).html(data);
					}
				});	

				var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
				
				var isFirefox = typeof InstallTrigger !== 'undefined';
				
				var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification));
				
				var isIE = /*@cc_on!@*/false || !!document.documentMode;
				
				var isEdge = !isIE && !!window.StyleMedia;
				
				var isChrome = !!window.chrome && !!window.chrome.webstore;
				
				var isBlink = (isChrome || isOpera) && !!window.CSS;
				
				if (isIE) {
					var isIE11 = !!window.MSInputMethodContext && !!document.documentMode;
					if (!isIE11) {
						window.location.href = '#{request.contextPath}/browerAlert.xhtml';
					}
				}			
			});
		// ]]>
	</script>
</h:head>
<h:body>
	<ui:include src="/WEB-INF/templates/public/include/header.xhtml"></ui:include>
	<div id="main">		
		<ui:insert name="content">
			
		</ui:insert>
	</div>
	
	<p:notificationBar id="browserAlert" position="top" effect="slide" styleClass="top" widgetVar="browserAlert">
	    <h:outputText value="推荐使用谷歌浏览器、火狐浏览器、IE11及以上版本浏览器，以获得最佳体验。" style="font-size:36px;" />
	</p:notificationBar>
	
</h:body>
</html>
